from django.db import models
from realize.models.category.StuffCategory import StuffCategory


class Stuff(models.Model):
    count = models.IntegerField(verbose_name="物品数量")
    category = models.ForeignKey(StuffCategory, on_delete=models.CASCADE, verbose_name="资产类名")

    def __str__(self):
        return f"资产：{self.category} - {self.count}"

    class Meta:
        verbose_name_plural = '资产 - Stuff'
